/**
 * 路由的配置
 */

import userConf from './routers/userConf';
import user from './routers/user';

export default [
  {
    path: '/',
    component: '@/layouts/BasicLayout',
    routes: [
      // 工作台
      {
        path: '/workbench',
        component: '@/pages/Workbench',
        exact: false,
      },

      // 首页
      {
        path: '/home',
        exact: false,
        component: '@/pages/Home',
      },

      // 用户服务
      ...user,


      // 菜单
      {
        path: '/',
        component: '@/layouts/MenuLayout',
        wrappers: ['@/components/wrappers/Authorized'],
        authority: ['login'],
        type: 'login',
        routes: [
          { path: '/', redirect: '/userConf' },
          ...userConf,
          { component: '404' },
        ],
      },
    ],
  },
];
